<?php

class IndexController extends Zend_Controller_Action {

    public function init() {
        /* Initialize action controller here */
    }

    public function indexAction() {
   
        $search_form = new Zend_Form();
        $search_form->setAttrib('id', 'search');
        $search_form->addElement('submit', 'submit', array(
            'required' => false,
            'ignore'   => true,
            'decorators' => array('ViewHelper',array('HtmlTag', array('tag' => 'dd', 'id' => 'form-submit')))
        ));
        $search_form->addElement('text', 'search_content', array(
            'filters'    => array('StringTrim'),
            'validators' => array(
                'Alpha',
                array('StringLength', true, array(3, 128))
            ),
            'required'   => true,
            'label'      => '查找',
        ));
        
         
        $this->view->searchForm = $search_form;
        
        
    }

}

